package com.example.project.Mapper;

import com.example.project.Entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper {
    User UserQuery(User user);

    void UserAdd(User user);

    @Update("update codes set code=#{code} where id=1")
    void setCode(String code);

@Select("select code from codes where id=1")
    String getCode();

}
